import axios from '@/libs/request'
// 资金接口
// 项目资金新增接口
export const insert = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/insert',
    data: data,
    type: 'post'
  })
}
// 监管类资金新增接口
export const superviseinsert = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalarySuperviseService/insert',
    data: data,
    type: 'post'
  })
}
// 项目资金列表接口
export const selectByPage = (data) => {
  return axios.request({
    // url: '/api/ac/setting/sstSalaryAnnualProjectFundService/selectByPage',
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/selectByPage',
    data: data,
    type: 'post'
  })
}
// 查询单条
export const selectById = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/selectById',
    data: data,
    type: 'post'
  })
}
// 修改接口
export const projectUpdate = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/update',
    data: data,
    type: 'post'
  })
}
// 删除接口
export const projectDelete = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/delete',
    data: data,
    type: 'post'
  })
}
// // 保存创建数据接口
export const saveData1 = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstGovBaseService/insertSstGovBase',
    data: data,
    type: 'post'
  })
}
// // // 点击创建事项接口
export const createItem = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstGovBaseService/updateSstGovBase',
    data: data,
    type: 'post'
  })
}
// // 点击编辑事项接口
export const editItem = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstGovBaseService/selectCapitalById',
    data: data,
    type: 'post'
  })
}

// 监管类资金列表接口
export const superviseselectByPage = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalarySuperviseService/selectByPage',
    data: data,
    type: 'post'
  })
}
// 监管类资金修改接口
export const supervisesupdate = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalarySuperviseService/update',
    data: data,
    type: 'post'
  })
}
// 监管类资金删除接口
export const supervisesdelete = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalarySuperviseService/delete',
    data: data,
    type: 'post'
  })
}
// 监管类资金更新填报状态
export const superupdateFillState = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalarySuperviseService/updateFillState',
    data: data,
    type: 'post'
  })
}
// 项目资金修改填报状态
export const updateFillState = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/updateFillState',
    data: data,
    type: 'post'
  })
}
export const selectOK = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalarySuperviseService/selectById',
    data: data,
    type: 'post'
  })
}
// 新增流程设定接口
export const insertSstGovFlow = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstGovFlowService/insertSstGovFlow',
    data: data,
    type: 'post'
  })
}
// 编辑流程设定接口
export const updateSstGovFlow = (data) => {
  return axios.request({
    url: 'api/ac/setting/sstGovFlowService/updateSstGovFlow',
    data: data,
    type: 'post'
  })
}
// 删除流程设定接口
export const deleteSstGovFlow = (data) => {
  return axios.request({
    url: 'api/ac/setting/sstGovFlowService/delete',
    data: data,
    type: 'post'
  })
}
// 流程设定列表
export const selectSstGovFlowList = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstGovFlowService/selectSstGovFlowList',
    data: data,
    type: 'post'
  })
}
// 修改资金
export const updateSalaryAnnualProjectFund = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateSalaryAnnualProjectFund',
    data: data,
    type: 'post'
  })
}
// 修改条件表
export const updateSstGovWhere = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateSstGovWhere',
    data: data,
    type: 'post'
  })
}
// 修改规则表
export const updateSstGovRule = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateSstGovRule',
    data: data,
    type: 'post'
  })
}
// 修改要件表
export const updateSstGovYaojian = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateSstGovYaojian',
    data: data,
    type: 'post'
  })
}
// 修改数据需求明细
export const updateDataRequirementDetails = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateDataRequirementDetails',
    data: data,
    type: 'post'
  })
}
// 修改公示要求表
export const updatePublicityRequirements = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updatePublicityRequirements',
    data: data,
    type: 'post'
  })
}
// 修改监督节点表
export const updateSupervisionNode = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateSupervisionNode',
    data: data,
    type: 'post'
  })
}
// 修改数据统计表
export const updateDataStatistics = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateDataStatistics',
    data: data,
    type: 'post'
  })
}
// 导出接口
export const sstSalaryAnnualProjectFundNewSExport = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstExportSalaryAnnualProjectFundNewService/exportFile',
    data: data,
    type: 'post'
  })
}
// 审查完成接口
export const updateSstGovYaojianScience = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstSalaryUpdateService/updateSstGovYaojianScience',
    data: data,
    type: 'post'
  })
}
//统计审查总数接口
export const getALLNums = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/getALLNums',
    data: data,
    type: 'post'
  })
}
//要件优化接口
export const getYaoJianNums = (data) => {
  return axios.request({
    url: '/api/ac/setting/sstNewMainSalaryAnnualProjectFundService/getYaoJianNums',
    data: data,
    type: 'post'
  })
}